//
//  MOAlertBaseView.h
//  emmoDiary
//
//  Created by miki on 2020/3/22.
//  Copyright © 2020 miki. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MOAlertBaseView : UIScrollView

@property (nonatomic ,strong) UIView *backgroundView;

@property (nonatomic ,strong) UIView *alertView;

@property (nonatomic ,strong) UIButton *leftBtn;

@property (nonatomic ,strong) UIButton *rightBtn;

@property (nonatomic ,strong) UIView *contentView;

@property (nonatomic ,strong) UILabel *titleLabel;

@property (nonatomic ,strong) UILabel *detailLabel;

@property (nonatomic ,copy) void (^didClickIndexBlock)(NSInteger index);

@property (nonatomic) BOOL autoDissmiss;

@property (nonatomic) BOOL tapDissmss;


- (instancetype)initWithTitle:(NSString *)title
         detailTitle:(NSString *)detailTitle
         contentView:(UIView *)contentView
        leftButtonImageName:(NSString *)leftButtonImageName
         rightButtonImageName:(NSString *)rightButtonImageName
                 autoDissmiss:(BOOL)autoDissmiss
                  tapDissmiss:(BOOL)tapDissmss;

+ (instancetype)alertWithTitle:(NSString *)title
                   detailTitle:(NSString *)detailTitle
                   contentView:(UIView *)contentView
                     leftTitle:(NSString *)leftTitle
                    rightTitle:(NSString *)rightTitle;



- (void)show;

- (void)showInView:(UIView *)view;

+ (CGFloat)alertWidth;

- (void)dismss;

@end
